<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js示例4-9-2</title>
	<script>
		function person(x,y,z){
			this.name = x;
			this.color = y;
			this.age = z;
			this.callName = function(){
				alert(this.name);
			}
		}
	    var person1=new person("李宁","黄色",21);
	    person1.callName();
	</script>
</head>
<body>
	
</body>
</html>